s = [1,3,0,5,3,5,6,8,8,2,12]
f = [4,5,6,7,8,9,10,11,12,13,14]

#to Save meeting
# first activity is be added
meeting = [3]

# j is index of f[]
j = meeting[0]-1

# for in 1,len-1
for i in range(1,len(s)):
    if s[i%(len(s))] > f[j%(len(s))]:
        meeting.append(i%(len(s))+1) 
        j = i
print('下面的活动会安排:' , meeting )


